package com.security.controller;

import com.security.entity.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

@RestController
@RequestMapping("/auth")
public class AuthController {

    @RequestMapping("/list")
    public List<User> list(){
        return Arrays.asList(
                new User(1, "张三", "zs"),
                new User(2, "李四", "ls"),
                new User(3, "王五", "ww"),
                new User(4, "麻六", "ml")
        );
    }

}
